package com.lin.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import com.lin.cms.criteria.ModelItemCriteria;
import com.lin.cms.domain.ModelItem;

public interface ModelItemMapper{
	
	ModelItem selectByPrimaryKey(Integer modelitemId);
	
	List<ModelItem> selectByCriteria(ModelItemCriteria criteria);
	
	int deleteByPrimaryKey(Integer modelitemId);
	
	int deleteByCriteria(ModelItemCriteria criteria);
	
	int insert(ModelItem modelItem);
	
	int updateByPrimaryKeySelective(ModelItem modelItem);
	
	int updateByPrimaryKey(ModelItem modelItem);
	
	List<ModelItem> selectByPage(ModelItemCriteria criteria,RowBounds bounds);
	 
	int countByCriteria(ModelItemCriteria criteria);
	
	List<ModelItem> getList(@Param("modelId") Integer modelId, @Param("isChannel") boolean isChannel,@Param("hasDisabled") boolean hasDisabled);
    
}
